package com.bootdo.common.domain;

import lombok.Data;
import lombok.ToString;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Data
@ToString
public class PageDO<T> {

    private int offset;
    private int limit;
    private int total;
    private Map<String, Object> params;
    private String param;
    private List<T> rows;

    public PageDO() {
        super();
        this.offset = 0;
        this.limit = 10;
        this.total = 1;
        this.params = new HashMap<>();
        this.param = "";
        this.rows = new ArrayList<>();
    }

}
